import service from '../axios/index'

function getscoped (data) {
  return service({
    url: '/mweb/contract/selectContractScopeList',
    method: 'post',
    data
  })
}
function addscoped (data) {
  return service({
    url: '/mweb/contract/addNewScopeAndParams',
    method: 'post',
    data
  })
}
function getscopeasid (data) {
  return service({
    url: '/mweb/contract/selectContractParamsByScopeId',
    method: 'post',
    data
  })
}
function updatascope (data) {
  return service({
    url: '/mweb/contract/updateScopeAndParams',
    method: 'post',
    data
  })
}
function deletescope (data) {
  return service({
    url: '/mweb/contract/delContractScopeById',
    method: 'post',
    data
  })
}
function deleteScopeByid (data) {
  return service({
    url: '/mweb/contract/judgeParamReferencedByContract',
    method: 'post',
    data
  })
}
export { getscoped, addscoped, getscopeasid, updatascope, deletescope, deleteScopeByid }
